package com.runvp.common.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 阿里支付配置
 */
@Component
@ConfigurationProperties(prefix = "biz.alipay")
public class AlipayConfig {



    /** 预授权服务ID */
    private static  String serviceId ;
    /**	商户用户ID*/
    private static String payeeUserId ;
    /** 支付宝网关 */
    private static String alipayNetwork ;
    /**应用ID*/
    private static String appId ;
    /**应用私钥*/
    private static String   appPrivateKey;
    /****支付宝公钥*/
    private static String  alipayPublicKey;
    /**回调地址，该字段只支持http或https且可访问的网络地址*/
    private static String  notifyUrl;

    public static String getServiceId() {
        return serviceId;
    }

    public void setServiceId(String serviceId) {
        AlipayConfig.serviceId = serviceId;
    }

    public static String getPayeeUserId() {
        return payeeUserId;
    }

    public void setPayeeUserId(String payeeUserId) {
        AlipayConfig.payeeUserId = payeeUserId;
    }

    public static String getAlipayNetwork() {
        return alipayNetwork;
    }

    public void setAlipayNetwork(String alipayNetwork) {
        AlipayConfig.alipayNetwork = alipayNetwork;
    }

    public static String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        AlipayConfig.appId = appId;
    }

    public static String getAppPrivateKey() {
        return appPrivateKey;
    }

    public void setAppPrivateKey(String appPrivateKey) {
        AlipayConfig.appPrivateKey = appPrivateKey;
    }

    public static String getAlipayPublicKey() {
        return alipayPublicKey;
    }

    public void setAlipayPublicKey(String alipayPublicKey) {
        AlipayConfig.alipayPublicKey = alipayPublicKey;
    }

    public static String getNotifyUrl() {
        return notifyUrl;
    }

    public void setNotifyUrl(String notifyUrl) {
        AlipayConfig.notifyUrl = notifyUrl;
    }
}
